﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="DayToDayManagement_ProductUpStatistics" Codebehind="ProductUpStatistics.aspx.cs" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <script type="text/javascript" src="../Include/Js/OpenWindow.js"></script>
    <script type="text/javascript" src="../Include/Js/PopupCalendar.js"></script>
    <script type="text/javascript">
        function OpenWindowToGetUpTypes()
        {
            var str = window.showModalDialog("SelectUpType.aspx","dialogWidth=200px;dialogHeight=100px");
            document.getElementById("hiddenUpTypes").innerText=str;
            
        }
        function setValue(sdata)
        {
            var ar=sdata.split("|");
            var strProduct="";
            for(var i=0;i<ar.length;i++)
            {
                if(i+1==ar.length)
                {
                    var array=ar[i].split(",");
                    strProduct+="'"+array[0]+"'"; 
                }
                else
                {
                    var array=ar[i].split(",");
                    strProduct+="'"+array[0]+"',"; 
                }
                  
                        
            }  
            document.getElementById("hiddenProduct").innerText=strProduct;
        }
        function TrimEnd(str)
        {
            var length = str.length;
            if(length>0)
            {
                return str.substring(0,length-1);
            }
        }
    </script>
</head>
<body>

    <form id="form1" runat="server">
    <div align="Justify">
     <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
<h2>商品上架统计</h2>
        

        <div class="menu_bg">上架人：<asp:DropDownList ID="dropUpOperator" runat="server"></asp:DropDownList>
        
        审核：<asp:DropDownList ID="dropAudit" runat="server">
            <asp:ListItem></asp:ListItem>
            <asp:ListItem Value="1">是</asp:ListItem>
            <asp:ListItem Value="0">否</asp:ListItem>
        </asp:DropDownList>
        
        审核人：<asp:DropDownList ID="dropAuditor" runat="server"></asp:DropDownList>
        
        <input id="btnSelectProduct" type="button" value="选择商品" class="input_button1" onclick="SearchProduct('../');" />
        
        <input id="btnSelectUpType" type="button" value="选择上架类型" class="input_button3" onclick="OpenWindowToGetUpTypes()" />
        <input id="hiddenUpTypes" type="hidden" runat="server" />
        <input id="hiddenProduct" type="hidden" runat="server" />
        </div>
        
        <div class="menu_bg">上架时间由<asp:TextBox ID="txtUpStartTime" runat="server"  OnClick="getDateString(this,oCalendarChs)"></asp:TextBox>
        
        
                至<asp:TextBox ID="txtUpEndTime" runat="server"  OnClick="getDateString(this,oCalendarChs)"></asp:TextBox>&nbsp;<asp:Button ID="btnSearch" runat="server" Text="查找" class="input_button" OnClick="btnSearch_Click" /></div>
        
              
        <div class="juli"><asp:Repeater ID="rptUpStatistics" runat="server">
            <HeaderTemplate>
                <table class="tb" border="0" cellspacing="1" cellpadding="0">
                    <tr class="z1">
                        <td class="zt3">
                            商品代码
                        </td>
                        <td class="zt3">
                            电子商务名称
                        </td>
                        <td class="zt3">
                            制单日期
                        </td>
                        <td class="zt3">
                            上架人

                        </td>
                        <td class="zt3">
                            上架类型
                        </td>
                        <td class="zt3">
                            单据编号
                        </td>
                        <td class="zt3">
                            备注
                        </td>
                        <%--<td class="zt3">
                            ERP名称
                        </td>

                        <td class="zt3">
                            摘要
                        </td>--%>
                    </tr>
                <%--</table>--%>
            </HeaderTemplate>
            <ItemTemplate>
                <%--<table style="width: 80%; margin-top:10px;" border="0" cellspacing="1" cellpadding="0" bgcolor="#dfdfdf">--%>
                    <tr class="z2">
                        <td class="zt4">
                            <%# Eval("SPDM")%>
                        </td>
                        <td class="zt4">
                            <%# Eval("CA_NAME")%>
                        </td>
                        <td class="zt4">
                            
                            <%# DateTime.Parse(Eval("CU_CHECKDATE").ToString()) == DateTime.MinValue ? "" : DateTime.Parse(Eval("CU_CHECKDATE").ToString()).ToShortDateString()%>
                           <%--<%# Eval("CU_CHECKDATE")%>--%>
                        </td>
                        <td class="zt4">
                            <%# Eval("CU_UPER")%>
                        </td>
                        <td class="zt4">
                            <%# Eval("UT_NAME")%>
                        </td>
                        <td class="zt4">
                            <%# Eval("CU_ID")%>
                        </td>



                        <td class="zt4">
                            <%# Eval("CU_NOTE")%>
                        </td>
                        <%--<td class="zt4">
                            <%# Eval("SPMC")%>
                        </td>

                        <td class="zt4">
                            <%# Eval("CUD_NOTE")%>
                        </td>--%>
                    </tr>

            </ItemTemplate>
            <FooterTemplate>
                     </table>     
            </FooterTemplate>
        </asp:Repeater></div>
        <div class="juli"><webdiyer:aspnetpager id="AspNetPager1" 
        runat="server"
          
       NumericButtonCount="8" 
       ShowCustomInfoSection="left" 
       PagingButtonSpacing="0"
       ShowInputBox="always" 
       HorizontalAlign="Center" 
       SubmitButtonText="转到" 
       NumericButtonTextFormatString="[{0}]" OnPageChanged="AspNetPager1_PageChanged" FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页" SubmitButtonClass="input_button"></webdiyer:aspnetpager></div>
     </div>
    </div>
    </form>
</body>
</html>
